package com.hpjpw.ido.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生对象 ido_student
 * 
 * @author hpj
 * @date 2021-01-08
 */
@ApiModel("StudentDomain")
public class Student extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生ID */
    @ApiModelProperty("学生ID")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty("用户ID")
    private Long userId;

    /** 学号 */
    @Excel(name = "学号")
    @ApiModelProperty("学号")
    private String number;

    /** 姓名 */
    @Excel(name = "姓名")
    @ApiModelProperty("姓名")
    private String name;

    /** 学校 */
    @Excel(name = "学校")
    @ApiModelProperty("学校")
    private String school;

    /** 专业 */
    @Excel(name = "专业")
    @ApiModelProperty("专业")
    private String major;

    /** 年级 */
    @Excel(name = "年级")
    @ApiModelProperty("年级")
    private String grade;

    /** 地区ID */
    @Excel(name = "地区ID")
    @ApiModelProperty("地区ID")
    private Long areaId;

    /** 企业ID */
    @Excel(name = "企业ID")
    @ApiModelProperty("企业ID")
    private Long enterpriseId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setMajor(String major) 
    {
        this.major = major;
    }

    public String getMajor() 
    {
        return major;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setEnterpriseId(Long enterpriseId) 
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId() 
    {
        return enterpriseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("number", getNumber())
            .append("name", getName())
            .append("school", getSchool())
            .append("major", getMajor())
            .append("grade", getGrade())
            .append("areaId", getAreaId())
            .append("enterpriseId", getEnterpriseId())
            .toString();
    }
}
